<div class="ui-box ui-form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'manager-form',
	'enableAjaxValidation'=>true,)); ?>
 
    <?php echo $form->errorSummary($model); ?>
 	<?php if($model->isNewRecord):?>
    <div class="ui-form-item">
        <?php echo $form->label($model,'登录名'); ?>
        <?php echo $form->textField($model,'loginname',array('class'=>'ui-form-input'));?>
        <?php echo $form->error($model,'loginname'); ?>
    </div>
    <?php endif;?>
 	<?php if (!$model->isNewRecord):?>
 	<div class="ui-form-item">
        <?php echo $form->label($model,'原密码'); ?>
        <?php echo $form->passwordField($model,'passwordOrigin',array('class'=>'ui-form-input')) ?>
        <?php echo $form->error($model,'passwordOrigin'); ?>
   		</div>
 	<?php endif;?>
    <div class="ui-form-item">
        <?php echo $form->label($model,'密码'); ?>
        <?php echo $form->passwordField($model,'password',array('class'=>'ui-form-input')) ?>
        <?php echo $form->error($model,'password'); ?>
    </div>
 
     <div class="ui-form-item">
        <?php echo $form->label($model,'确认密码'); ?>
        <?php echo $form->passwordField($model,'passwordConfirm',array('class'=>'ui-form-input')) ?>
        <?php echo $form->error($model,'passwordConfirm'); ?>
    </div>
    
    <div class="ui-form-item">
    	<?php echo $form->label($model,'备注'); ?>
        <?php echo $form->textField($model,'remark',array('class'=>'ui-form-input')); ?>
        <?php echo $form->error($model,'remark'); ?>
    </div>
 
    <div class="ui-form-item submit">
        <?php echo CHtml::submitButton('保存', array('class'=>'ui-form-submit')); ?>
    </div>
 
<?php $this->endWidget(); ?>
</div>